<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .header {
            background-color: #ffc0cb;
            height: 50px;
            width: 640px;
            margin: 50px auto;
        }

        ul {
            list-style: none;
        }

        .header li {
            float: left;
            height: 50px;
            width: 80px;
            font-size: 16px;
            line-height: 50px;
            text-align: center;
            color: white;
        }

        li:hover {
            background-color: #008000;
        }
    </style>
</head>
<body>
<div class="box">
    <div class="header">
        <ul>
            <li>新闻1</li>
            <li>新闻2</li>
            <li>新闻3</li>
            <li>新闻4</li>
            <li>新闻5</li>
            <li>新闻6</li>
            <li>新闻7</li>
            <li>新闻8</li>
        </ul>
    </div>
</div>
</body>
</html>